<?php

/**
 * Trida entity pro zaznamenavani aktualizace.
 *
 * @author David Dusek
 */
namespace CMS\Update\Models;

use Doctrine\ORM\Mapping as ORM;

/** 
 * @ORM\Entity(repositoryClass="\CMS\Update\Models\UpdateRepository")
 * @ORM\Table(name="`update`")
 */
class Update extends \Nette\Object {    
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue
     * @var int 
     */
    private $id;
    
    /**
     * @ORM\Column(name="update_date", type="datetime")
     * @var string 
     */
    private $date;
        
    /**
     * @ORM\Column(type="text")
     * @var string 
     */
    private $modules;
    
    /**
     * @ORM\Column(name="svn_path", length=255)
     * @var string 
     */    
    private $svnPath;
    
    /**
     * @ORM\Column(name="svn_dir", length=255)
     * @var string 
     */    
    private $svnDir;
    
    
    /**
     * @ORM\Column(name="bckup_dir", length=255)
     * @var string 
     */    
    private $backupDir;
    
    /**
     * @ORM\Column(type="boolean")
     * @var boolean 
     */    
    private $remote = 0;
    
    
    public function getId() {
        return $this->id;
    }
    
    public function setDate($date) {
        $this->date = $date; 
    }

    public function getDate() {
        return $this->date;
    }
    
    public function setModules($modules) {
        $this->modules = $modules; 
    }

    public function getModules() {
        return $this->modules;
    }

    public function setSvnDir($svnDir) {
        $this->svnDir = $svnDir; 
    }

    public function getSvnDir() {
        return $this->svnDir;
    }

    public function setSvnPath($svnPath) {
        $this->svnPath = $svnPath; 
    }

    public function getSvnPath() {
        return $this->svnPath;
    }

    public function setBackupDir($backupDir) {
        $this->backupDir = $backupDir; 
    }

    public function getBackupDir() {
        return $this->backupDir;
    }
    
    public function setRemote($remote) {
        $this->remote = $remote; 
    }

    public function getRemote() {
        return $this->remote;
    }

}
